<?php
echo "<h4>Related Projects:</h4>";
$count = elgg_get_entities_from_metadata(array(
	'type' => 'group',
	'metadata_name_value_pairs' => array(
			array('name' => 'securities','value' => $vars['sec'],'operand' => '=',),
		),
	'count' => true,
));
if ($count>0) {
	echo elgg_list_entities_from_metadata(array(
		'type'=>'group',
		'full_view' => false,
		'metadata_name_value_pairs' => array(
				array('name' => 'securities','value' => $vars['sec'],'operand' => '=',),
			),
		'pagination' => false,
		'offset' => 0,
		));
} else {
	echo "No project yet.";
}

echo "<h4>Followers:</h4>";
$guids = get_users_by_focused_ticker($vars['sec']);
if ($guids) {
	echo elgg_list_entities(array(
		'type' => 'user',
		'guids' => $guids,
		'full_view' => false,
		'pagination' => false,
		'list_type' => 'gallery',
		'offset' => 0,
		));
} else {
	echo "No followers yet.";
}

